package request

import "server/common/dto/request"

type CreateUserRequest struct {
	Account   string `json:"account" form:"account" binding:"required"`
	Password  string `json:"password" form:"password" binding:"required"`
	CaptchaId string `json:"captcha_id" form:"captcha_id"`
	Captcha   string `json:"captcha" form:"captcha"`
}

type ModifyUserRequest struct {
	ID        string `json:"id" form:"id" binding:"required"`
	Username  string `json:"username" form:"username"`
	Nickname  string `json:"nickname" form:"nickname"`
	Avatar    string `json:"avatar" form:"avatar"`
	Mobile    string `json:"mobile" form:"mobile"`
	Signature string `json:"signature" form:"signature"`
	Gender    uint   `json:"gender" form:"gender"`
	Address   string `json:"address" form:"address"`
	Email     string `json:"email" form:"email"`
}

type LoginRequest struct {
	Account  string `json:"account" form:"account" binding:"required"`
	Password string `json:"password" form:"password" binding:"required"`
	ID       string `json:"id" form:"id" binding:"required"`
	Answer   string `json:"answer" form:"answer" binding:"required"`
}

type UserQueryRequest struct {
	request.BaseQueryRequest
	Account string `json:"account" form:"account" example:"admin" description:"账号"`
}
